﻿package tools;

public class OutputAlignment {

	public static void main(String[] args) {
		String[] chinese = (new String("我 的 弟弟 因为 老 是 不 准时 上班 而 被 公司 解雇 了 可是 他 倒是 逢凶化吉 又 找到 了 一 份 工作 而且 工资 还 加 了 一 倍 ")).split(" ");
		String[] english = (new String("my brother joe got fired for never coming to work on time , but he landed on his feet and found another job that paid twice as much money . ")).split(" ");
		String[] alignment = (new String("0-0 2-1 3-2 4-2 6-6 7-10 7-11 8-8 8-9 9-4 10-4 11-4 12-4 13-4 14-12 14-13 15-14 16-15 17-15 18-7 19-20 20-20 21-21 22-22 23-22 24-19 25-24 30-25 30-26 ")).split(" ");

		for (String align : alignment) {
			String[] elements = align.split("\\-");
			int cn_word = Integer.parseInt(elements[0]);
			int en_word = Integer.parseInt(elements[1]);

			System.out.print(chinese[cn_word] + "(" + english[en_word] + ")  ");
		}
	}
}
